/**
 * 公共路由
 */
import Layout from '@/views/layout'
const commonRouter = [
  {
    path: '/login',
    name: 'Login',
    hidden: true,
    component: () => import('@/views/login')
  },
  {
    path: '/',
    redirect: '/dashboard',
    component: Layout,
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        meta: { title: '首页', icon: 'el-icon-stopwatch' },
        component: () => import('@/views/dashboard')
      }
    ]
  },
  {
    path: '/link-url',
    linkUrl: true,
    name: 'LinkUrl_A',
    meta: {
      title: '外部链接',
      icon: 'el-icon-link',
      url: 'https://www.baidu.com'
    }
  },
  {
    path: '/404',
    name: '404',
    hidden: true,
    component: () => import('@/views/error-page/404')
  }
]

export default commonRouter
